package com.henghai.zhenxuan.pay;

import com.henghai.zhenxuan.pay.alipay.AliPayTool;
import com.henghai.zhenxuan.pay.wechat.pay.WechatPayTools;

public class PayManager {
    public static IPayManager getPayManager(PayType payType) {
        switch (payType) {
            case ALIPAY:
                return AliPayTool.getInstance();
            case WECHAT:
                return WechatPayTools.getInstance();
        }
        return AliPayTool.getInstance();
    }
}
